package com.hzw.saas.web.app.user.param;

import java.util.Date;
import javax.validation.constraints.Max;
import javax.validation.constraints.Min;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author sonam
 * @since 2021/4/12 22:41
 */
@Data
@Accessors(chain = true)
@ApiModel(value = "论文成果/学术著作/发明专利参数")
public class PatentParam extends IdParam {

    @ApiModelProperty(value = "名称")
    private String professName;

    @ApiModelProperty(value = "详细信息或者链接")
    private String detail;

    @JsonFormat(pattern = "yyyy.MM")
    @JSONField(format = "yyyy.MM")
    @ApiModelProperty(value = "发表时间")
    private Date publishDate;

    @Min(value = 1, message = "请输入正确得类型")
    @Max(value = 3, message = "请输入正确得类型")
    @ApiModelProperty(value = "类型: 1论文成果 | 2学术著作 | 3发明专利")
    private Integer type;

}
